<?php


namespace BoojasrFramework\ServicesContainer;


use BoojasrFramework\ServicesContainer\EventDispatcher\EventDispatcher;

class ServicesClassFactory
{
    /**
     * @var ContainerInterface
     */
    static $container;

    static function setContainer($container){
        self::$container = $container;
    }

    /**
     * @return ContainerInterface
     */
    static function getContainer(){
        return self::$container;
    }

    /**
     * @return RequestStack
     */
    public static function RequestStack(){
        return self::getContainer()->get("request_stack");
    }

    /**
     * @return EventDispatcher
     */
    public static function EventDispatcher(){
        return self::getContainer()->get("event_dispatcher");
    }

    /**
     * @return HttpKernel
     */
    public static function HttpKernel(){
        return self::getContainer()->get("http_kernel");
    }



}
